package com.ch.web.constant;

import java.util.UUID;

public class FileConstant {
    public final static String FILE_UPLOAD_URL_PREV="http://localhost:8080/images/";
    public final static String FILE_UPLOAD="E:\\综合项目\\campus-wall\\web-front\\public\\images\\";

    public static String doWithFileName(String originalFilename){
        String substring = UUID.randomUUID().toString().substring(0, 6);
        int i = originalFilename.indexOf(".");
        String namePrev=originalFilename.substring(0,i);
        String after=originalFilename.substring(i);
        return namePrev + substring+after;
    }
}
